<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html" 
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:c="http://java.sun.com/jsp/jstl/core" 
    xmlns:ace="http://www.icefaces.org/icefaces/components" 
    xmlns:ice="http://www.icesoft.com/icefaces/component" 
    xmlns:ui="http://java.sun.com/jsf/facelets" >
    <h:form>
        
        <ace:dialog id="dialog"
                    closable="false"
                    widgetVar="sampleDynamicDialog"
                    visible="#{avisoMBean.message.visible}"
                    showEffect="slide"
                    hideEffect="puff"
                    width="400"
                    styleClass="#{avisoMBean.message.style}"
                    dialogPosition="center"
                    resizable="false"
                    closeOnEscape="false"
                    showHeader="false">
            <h:panelGrid columns="3" columnClasses="colwidth15,colwidth30,colwidth1" >
                <h:panelGroup/>
                <h:outputLabel value="#{avisoMBean.message.titulo}" style="text-align: center;font-style: italic;" styleClass="#{avisoMBean.message.textColor}"/>
                <h:commandButton rendered="#{avisoMBean.message.style=='messageError'}" styleClass="flotarDerecha" image="resources/images/closeRed.gif" action="#{avisoMBean.close}"/>
                <h:commandButton rendered="#{avisoMBean.message.style!='messageError'}" styleClass="flotarDerecha" image="resources/images/closeBlue.png" action="#{avisoMBean.close}"/>
            </h:panelGrid>
            <h:panelGrid width="90%">
                <h:outputLabel value="#{avisoMBean.message.mensaje}" styleClass="#{avisoMBean.message.textColor}"/>
                    </h:panelGrid>

            </ace:dialog>
      
           
    </h:form>
</ui:composition>

